// FunkyDog MailBundle - tags and keywords for Apple Mail 3.0
//    Copyright (C) 2008 saptarshi guha saptarshi.guha@gmail.com
//
//    This program is free software: you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation, either version 3 of the License, or
//    (at your option) any later version.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License
//    along with this program.  If not, see <http://www.gnu.org/licenses/>.


#import "Matador-Extras.h"



#import <objc/objc.h>
#import <objc/objc-runtime.h>
#import <objc/objc-class.h>
@implementation Matador(Extras)
+(void)load{
	if (self == [Matador class]){
		Method originalMethod ,replacedMethod;
		originalMethod  = class_getInstanceMethod(self, @selector(_setAttributeForFileAtPath:name:value:));

		replacedMethod  = class_getInstanceMethod(self, @selector(my_setAttributeForFileAtPath:name:value:));
	//	method_exchangeImplementations(originalMethod, replacedMethod);
	//	NSLog(@"Matador goes woof %");
	}
}

- (void)my_setAttributeForFileAtPath:(id)fp8 name:(id)fp12 value:(id)fp16;
{
	NSLog(@"file %@, name %@, value %@",fp8,fp12,fp16);
	[self my_setAttributeForFileAtPath:fp8 name:fp12 value:fp16];
}
@end
